package cn.mazexal.examapi.common.models;

/**
 * @author: Mazexal
 * Date: 2025/5/25
 */
public class BizException extends RuntimeException {
    private ResponseError error;

    public BizException(ResponseError error) {
        super(error.getMessage());
        this.error = error;
    }

    public ResponseError getError() {
        return this.error;
    }

    public void setError(ResponseError error) {
        this.error = error;
    }
}
